import http from "@/http/http";

const url = "store";

export default {
    getListByPage: function (data,params){
        return http.post(`${url}/list.do`,data,{
            params
        });
    },
    edit: function (id) {
        console.log("查看id："+id);
        return http.get(`${url}/edit.do`, {
            params: {
                id
            }
        });
    },
    save: function (data) {
        return http.post(`${url}/save.do`, data);
    },
    del: function (id){
        return http.get(`${url}/del.do`,{
            params: {
                id
            }
        })
    },
    delBatch: function (ids){
        return http.get(`${url}/delBatch.do`,{
            params: {
                ids
            }
        })
    },

}